package com.yxp423.ssmempl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxp423.ssmempl.bean.Travel;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TravelMapper extends BaseMapper<Travel> {

    @Insert("INSERT INTO tbl_travel " +
            "(user_id," +
            "start_time," +
            "end_time," +
            "duration," +
            "place," +
            "apply_desc," +
            "review_status," +
            "reviewer_id" +
            "creatTime) " +
            "VALUES (" +
            "#{userId}," +
            "#{startTime}," +
            "#{endTime}," +
            "#{duration}," +
            "#{place}," +
            "#{applyDesc}," +
            "#{reviewStatus}," +
            "#{reviewerId}," +
            "#{creatTime})"
    )
    int savetravel(Travel travel);




}
